package com.atguigu.gmall.common.interceptor.annotation;

import com.atguigu.gmall.common.interceptor.RequestHearInterceptor;
import com.atguigu.gmall.common.interceptor.component.UserAuthComponent;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @Author:lyd
 * @Date:2023/9/2 16:24
 * @Version:1.0
 * @Description 配置远程调用请求头拦截器的注解开关 以及判断用户是否登录的开关
 **/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Import({RequestHearInterceptor.class, UserAuthComponent.class})
public @interface EnableReqHeaderInterceptor {
}
